﻿using System;

namespace ChOfResp
{
    class Program
    {
        static void Main(string[] args)
        {
            Approver d, v, p, c;
            d = new Director("主任");
            v = new VicePresident("副董事长");
            p = new President("董事长");
            c = new Congress("董事会");

            d.setSuccessor(v);
            v.setSuccessor(p);
            p.setSuccessor(c);

            RurchaseRequest rurchaseRequest = new RurchaseRequest( 500, "桌子");
            RurchaseRequest rurchaseRequest1 = new RurchaseRequest(50000, "脑子");
            d.ProcessRequest(rurchaseRequest);
            d.ProcessRequest(rurchaseRequest1);

        }
    }
}
